import { getMedicalOrderDetail } from '../apis/order'
import { MedicalOrderDetail } from '../types/order'
import { ref } from 'vue'

export const useMedic = (id: string) => {
	//1.药品订单详情
	const orderDetail = ref({} as MedicalOrderDetail)
	//2.查询订单详情
	const getorderDetail = async () => {
		const res = await getMedicalOrderDetail(id)
		orderDetail.value = res
	}
	getorderDetail()

	return { orderDetail }
}
